package net.getbang.admin.service;

import java.util.Set;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;

import net.getbang.admin.entity.SysUser;

public interface SysUserService extends IService<SysUser> {
	/***根据用户的id查询权限列表*/
	Set<String> getUserPermissions(Long userId);
	
	SysUser queryByUserName(String username);


	Page<SysUser> querySysUserPages(Page<SysUser> page, SysUser sysUser);

	int updatePassword(SysUser user, String password, String newPassword);

	
	void update(SysUser user);

	void save(SysUser user);
}
